﻿namespace Infrastructure.Base.Services
{
    public interface IAuthenUserService
    {
        /// <summary>
        ///     查询用户数据
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        UserModel FindUserModel(string name);

        /// <summary>
        ///     登陆
        /// </summary>
        /// <param name="account"></param>
        /// <param name="password"></param>
        /// <param name="model"></param>
        /// <returns></returns>
        bool Login(string account, string password, out UserModel model);

        /// <summary>
        ///     登出
        /// </summary>
        /// <param name="account"></param>
        void Logout(string account);
    }
}